//
//  ActivityIndicatorView.h
//  softphone
//
//  Created by Jiri Kral on 7/25/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>


//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
@interface ActivityIndicatorView : UIView 
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
{
	UIActivityIndicatorView * _indicatorView;
	UILabel					* _label;
	CGFloat	_padding;
	BOOL _isFullscreen;
	BOOL					  _isTextOnRight;
}

@property(nonatomic, getter=hidesWhenStopped) BOOL hidesWhenStopped;
@property(nonatomic) BOOL isTextOnRight;
@property(nonatomic) CGFloat padding;
@property(nonatomic, copy) NSString *text;

- (id)initWithActivityIndicatorStyle:(UIActivityIndicatorViewStyle)style;
- (id)initWithActivityIndicatorStyle:(UIActivityIndicatorViewStyle)style onFullScreen:(BOOL) isFullscreen;
- (id)initWithFrame:(CGRect) frame activityIndicatorStyle:(UIActivityIndicatorViewStyle)style;
- (id)initWithFrame:(CGRect) frame title:(NSString*)title activityIndicatorStyle:(UIActivityIndicatorViewStyle)style;

- (void) startAnimating;
- (void) stopAnimating;
- (BOOL) isAnimating;

@end
